<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <a href="/upload/upload">增加</a>
        <table>
            <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>图片</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <c:forEach items="${uploads}" var="upload">
                <tr>
                    <td>${upload.id}</td>
                    <td>${upload.title}</td>
                    <td><img src="../${upload.src}" alt=""/></td>
                    <td>${upload.remark}</td>
                    <td><a href="/upload/edit/${upload.id}">修改</a><a href="/upload/del/${upload.id}">删除</a></td>
                </tr>
                </c:forEach>
            </tbody>
        </table>  
    </body>
</html>
